<template>
  <el-form ref="form" :model="historyDetail" label-width="80px">
    <el-form-item >
      <!--<span class="tag-group__title"></span>-->
      <el-tag
        effect="dark">
        {{ historyDetail.menuName}}
      </el-tag>
    </el-form-item>
    <el-form-item>
      <el-image
        style="width: 100px; height: 100px"
        :src="historyDetail.image">
      </el-image>
    </el-form-item>

    <el-form-item label="评分:">
      <el-input type="textarea" v-model="historyDetail.score"></el-input>
    </el-form-item>


    <el-form-item label="做过的人数:">

      <el-input type="textarea" v-model="historyDetail.heat"></el-input>

    </el-form-item>


    <el-form-item label="描述">
      <el-input type="textarea" v-model="historyDetail.depict"></el-input>
    </el-form-item>


  </el-form>
</template>

<script>
  import jwtDecode from 'jwt-decode'
  export default {
    data() {
      return {
        historyDetail:[]

      }
    },
    methods: {
      findAll(id){
        this.$axios.get("/menuTJ/selectMenuOne?id=" + id  ).then(res=> {
          this.historyDetail = res.data.data;
        })
      },
    },
    mounted(){
      this.findAll(this.$route.params.id)
    }
  }
</script>

<style scoped>

</style>

